package com.distribution.business.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
@Component
@ConfigurationProperties(prefix = "userinfo")
public class UserInfoDto {
    private String name;
    private Integer age;
    private Boolean active;
    private Date birthday;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date createdDate;
    private List<String> hobbies;
    private String address;
}
